package com.wujie.section10;

/**
 * Created by wujieliu on 2017/10/27.
 */
public class SoldOutState implements State {

    GumballMachine gumballMachine;

    public SoldOutState(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    public void insertQuarter() {
        System.out.println("You can't insert a quarter,the machine is sold out");
    }

    public void ejectQuarter() {
        System.out.println("You can't eject, You haven't inserted a quarter");
    }

    public void turnCrank() {
        System.out.println("You turned,but there are no gumballs");
    }

    public void dispense() {
        System.out.println("No gumball dispensed");
    }
}
